<?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE mapper 
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.qingz.modules.${module}.mapper.${entity.className}Mapper">
	
	<!--分页查询 -->
	<select id="queryForPage" resultType="cn.com.qingz.modules.${module}.model.${entity.className}" parameterType="cn.com.qingz.modules.${module}.vo.${entity.className}SearchCondition" >
		select  * from ${entity.lowerName} t where 1=1
	    
	    <#list  searchConditionDto.valueedFieldsExt as  token>
			<if test="${token.name}!=null and ${token.name}!=''">
			 	 AND    t.${token.name} like  '%${token.value}%'
			</if>
		</#list>
		
	</select>
</mapper>
